home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
TASMSWAN.ZIP
/
CFILLSTR.C
< prev
next >
Wrap
Text File
|
1989-07-17
|
671b
|
29 lines
/******************************************************************
cfillstr.c
tests CFILL external module
NOTE: you must use the TCC comand-line compiler for this.
See book.
********/
#include <stdio.h>
extern void fillstring(unsigned char far * thestring, int stringlength, char fillchar);
char *test = "Filled to the brim";
main()
{
printf("Before fillstring: %s\n", test);
fillstring(test, strlen(test), '@' );
printf("After fillstring: %s\n", test);
}
/****
void fillstring(unsigned char far * thestring, int stringlength, char fillchar)
{
int i;
for (i=0; i < stringlength; i++)
thestring[i] = fillchr;
}
******/